package com.itheima.wemedia.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @version 1.0
 * @description 说明
 * @package com.itheima.wemedia.dto
 */
@Data
public class DownOrUpDto {
    @NotNull(message = "参数丢失")
    private Long id;

    @NotNull(message = "参数丢失")
    @Min(value = 0, message = "参数不正确")
    @Max(value = 1, message = "参数不正确")
    private Integer enable;
}
